You can access storable values from other atoms.
import { scene } from "vam-scripter";
var alpha = scene.getAtom("Cube").getStorable("CubeMat").getFloatParam("Alpha Adjust");
if (alpha.val == 0) {
console.log("The cube is fully transparent");
} else {
console.log("The cube alpha is: " + alpha.val);
}